<?php

Route::group([
    'prefix' => 'admin',
    'middleware' =>'auth.admin',
], function () {
    Route::post('global/individal-deletion', [
        'as' => 'AdminGlobalIndividalDeletion',
        'alias' => '单点删除',
        'uses' => 'Admin\GlobalController@individalDeletion'
    ]);

    Route::get('global/location', [
        'as' => 'AdminGlobalLocationData',
        'alias' => '省市区数据',
        'uses' => 'Admin\GlobalController@getLocation'
    ]);

    Route::get('global/marketing', [
        'as' => 'AdminGlobalMarketing',
        'alias' => '营销管理',
        'uses' => 'Admin\GlobalController@getMarketing'
    ]);

    Route::post('global/marketing', [
        'as' => 'AdminGlobalMarketingAction',
        'alias' => '营销管理保存',
        'uses' => 'Admin\GlobalController@saveMarketing'
    ]);


});